package com.qcby.controller;

import com.qcby.Constants;
import com.qcby.model.MovieType;
import com.qcby.model.resp.RespEntity;
import com.qcby.service.MovieTypeService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

@RestController
@RequestMapping("/movieType")
public class MovieTypeController {
    @Autowired
    private MovieTypeService movieTypeService;
    @RequestMapping("/selectAll")
    public RespEntity<List<MovieType>> selectAll(){
        List<MovieType> movieTypes=movieTypeService.selectObjectAll();
        return RespEntity.successCustomize(Constants.FLAG_200, "查询成功！", movieTypes);
    }

}
